package com.yang.designmode.bridge;

public class Client {
    public static void main(String[] args) {
        Implementor implA = new ConcreteImplementorA();
        Implementor implB = new ConcreteImplementorB();

        Abstraction abstrA = new RefinedAbstraction(implA);
        Abstraction abstrB = new RefinedAbstraction(implB);

        abstrA.operation(); // 输出：RefinedAbstraction: ConcreteImplementorA operation
        abstrB.operation(); // 输出：RefinedAbstraction: ConcreteImplementorB operation
    }
}

